/*
 * tire-agent-blocks/shop-cta — self-contained styles
 * (specs/blocks-self-contained-css.md). Mirrors the theme's
 * blocks/search-products-cta.css (flattened), with three deltas:
 * - the theme's unconditional translateY(-100px) (a blog-landing hero
 *   overlap) is not ported; it stays theme-owned on the landing and is
 *   explicitly neutralized when the block is narrow (it was pulling the dark
 *   band over preceding post content);
 * - title/bullet colors are pinned with specificity + !important — post
 *   templates set dark element colors that beat the single-class rules,
 *   which rendered the text invisible on the dark band;
 * - a container query restores the stacked mobile layout whenever the block
 *   itself is narrow (the theme's viewport media queries forced the desktop
 *   split into ~700px post columns: squeezed title, sliver button);
 * - the check icon ships as a data URI (the theme referenced it relative to
 *   its own bundle path).
 */

.site-column.tire-agent-blocks__shop-cta {
  container-type: inline-size;
  container-name: ta-shop-cta;
}

/* The theme's blog-landing translateY(-100px) (hero overlap) is applied
   unconditionally to this wrapper; inside a single post it pulled the dark
   band over the preceding content. Neutralize it there — the landing keeps
   the theme's rule. Not ported to this stylesheet, so surfaces without the
   theme bundle (content-area pages, /deals/*) never translate. */
body.single .site-column.tire-agent-blocks__shop-cta {
  transform: none !important;
}

.ta-shop-cta {
  display: flex;
  flex-direction: column;
  position: relative;
}

.ta-shop-cta__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px 80px;
  background-color: var(--ta-color-neutral-900, #1D1E24);
  border-radius: 10px;
}

.ta-shop-cta .ta-shop-cta__title,
.posts .ta-shop-cta .ta-shop-cta__title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  color: var(--ta-color-neutral-100, #FFF) !important;
}

.ta-shop-cta__idk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.ta-shop-cta .ta-shop-cta__bullets,
.ta-shop-cta .ta-shop-cta__bullets li,
.posts .ta-shop-cta .ta-shop-cta__bullets li {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ta-color-neutral-100, #FFF) !important;
}

.ta-shop-cta__bullets ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ta-shop-cta__bullets li {
  position: relative;
  margin-left: 24px;
}

.ta-shop-cta__bullets li:before {
  display: block;
  content: '';
  position: absolute;
  left: -24px;
  top: 2px;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.688.313a.964.964 0 0 1 0 1.406l-8 8a.964.964 0 0 1-1.407 0l-4-4a.964.964 0 0 1 0-1.407.964.964 0 0 1 1.407 0l3.28 3.282L13.282.312a.964.964 0 0 1 1.406 0Z' fill='%2302AF0E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.ta-shop-cta__rim,
.ta-shop-cta__wheel {
  position: relative;
  align-self: center;
}

.ta-shop-cta__rim {
  width: 128px;
  height: 128px;
  margin-top: -136px;
  margin-left: -90px;
  z-index: 2;
}

.ta-shop-cta__wheel {
  width: 116px;
  height: 143px;
  margin-top: -60px;
  margin-left: 110px;
  z-index: 3;
}

.ta-shop-cta .ta-shop-cta__button,
.ta-shop-cta a.ta-shop-cta__button,
.posts .ta-shop-cta .ta-shop-cta__button,
.posts .ta-shop-cta a.ta-shop-cta__button {
  position: relative;
  padding-inline: 40px;
  z-index: 10;
}

/* desktop presentation — only when the block itself is wide */
@container ta-shop-cta (min-width: 900px) {
  .ta-shop-cta__content {
    align-items: flex-start;
    justify-content: center;
    margin-inline-end: 50px;
    padding: 40px;
    border-radius: 20px;
  }

  .ta-shop-cta .ta-shop-cta__title {
    margin-right: 170px;
    font-size: 40px;
    text-align: left;
  }

  .ta-shop-cta__bullets {
    flex-grow: 1;
  }

  .ta-shop-cta__bullets ul {
    flex-direction: row;
    margin-left: 24px;
    gap: 50px;
  }

  .ta-shop-cta__bullets li {
    margin-left: 0;
  }

  .ta-shop-cta__idk {
    flex-direction: row;
    gap: 50px;
  }

  .ta-shop-cta__rim,
  .ta-shop-cta__wheel {
    position: absolute;
  }

  .ta-shop-cta__rim {
    width: 180px;
    height: 180px;
    margin-top: unset;
    margin-left: unset;
    top: 10px;
    right: 75px;
  }

  .ta-shop-cta__wheel {
    width: 160px;
    height: 198px;
    margin-top: unset;
    margin-left: unset;
    top: 10px;
    right: -24px;
  }
}

@container ta-shop-cta (min-width: 1100px) {
  .ta-shop-cta__content {
    margin-inline-end: 145px;
  }

  .ta-shop-cta__rim {
    width: 230px;
    height: 230px;
    right: 125px;
  }

  .ta-shop-cta__wheel {
    width: 198px;
    height: 245px;
    right: 0;
  }
}

/* narrow-column fix: the theme's viewport media queries (loaded alongside on
   blog surfaces) force the desktop split layout and the landing translateY
   even when the block sits in a ~700px post column — pin the stacked mobile
   presentation and keep the band in flow when the block is narrow */
@container ta-shop-cta (max-width: 899px) {
  .ta-shop-cta .ta-shop-cta__content,
  .posts .ta-shop-cta .ta-shop-cta__content {
    align-items: center !important;
    margin-inline-end: 0 !important;
    padding: 40px 20px 80px !important;
    border-radius: 10px !important;
  }

  .ta-shop-cta .ta-shop-cta__title,
  .posts .ta-shop-cta .ta-shop-cta__title {
    margin-right: 0 !important;
    font-size: 24px !important;
    text-align: center !important;
  }

  .ta-shop-cta .ta-shop-cta__idk,
  .posts .ta-shop-cta .ta-shop-cta__idk {
    flex-direction: column !important;
    gap: 32px !important;
  }

  .ta-shop-cta .ta-shop-cta__bullets ul,
  .posts .ta-shop-cta .ta-shop-cta__bullets ul {
    flex-direction: column !important;
    margin-left: 0 !important;
    gap: 16px !important;
  }

  .ta-shop-cta .ta-shop-cta__bullets li,
  .posts .ta-shop-cta .ta-shop-cta__bullets li {
    margin-left: 24px !important;
  }

  .ta-shop-cta .ta-shop-cta__rim,
  .posts .ta-shop-cta .ta-shop-cta__rim {
    position: relative !important;
    width: 128px !important;
    height: 128px !important;
    margin-top: -136px !important;
    margin-left: -90px !important;
    top: unset !important;
    right: unset !important;
  }

  .ta-shop-cta .ta-shop-cta__wheel,
  .posts .ta-shop-cta .ta-shop-cta__wheel {
    position: relative !important;
    width: 116px !important;
    height: 143px !important;
    margin-top: -60px !important;
    margin-left: 110px !important;
    top: unset !important;
    right: unset !important;
  }
}
